/*
 * @Author: 灰佳小白 1150248441@qq.com
 * @Date: 2022-10-12 10:29:21
 * @LastEditors: 灰佳小白 1150248441@qq.com
 * @LastEditTime: 2022-10-16 18:04:34
 * @FilePath: \新建文件夹 (2)\jep-training-trinity-group\briup-ui\src\store\getters.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  introduction: state => state.user.introduction,
  roles: state => state.user.roles,
  user: state => state.user.user,
  permission_routes: state => state.permission.routes,
  errorLogs: state => state.errorLog.logs,

  columns: state => state.column.columns,

  applys: state => state.apply.applys,
  changes: state => state.change.changes,
  indents: state => state.indent.indents,
  infos: state => state.info.infos,
  // lhl ： 增加
  current_d: state => state.user.current_d,
  userId: state => state.user.userId,
  updateDetails: state => state.user.updateDetails,

  // 资讯分类
  categories: state => state.category.categories
}
export default getters
